package com.foreverwin.jzymes.common.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.foreverwin.jzymes.common.mapper.TranshipInfraMapper;
import com.foreverwin.jzymes.common.domain.TranshipInfra;
import com.foreverwin.jzymes.common.service.ITranshipInfraService;

/**
 * 接驳站汇总 服务层实现
 * 
 * @author ervin
 * @date 2019-05-10
 */
@Service
public class TranshipInfraServiceImpl implements ITranshipInfraService
{
	@Autowired
	private TranshipInfraMapper transhipInfraMapper;

	/**
     * 查询接驳站汇总信息
     * 
     * @param handle 接驳站汇总ID
     * @return 接驳站汇总信息
     */
    @Override
	public TranshipInfra selectTranshipInfraById(String handle)
	{
	    return transhipInfraMapper.selectTranshipInfraById(handle);
	}
	
	/**
     * 查询接驳站汇总列表
     * 
     * @param transhipInfra 接驳站汇总信息
     * @return 接驳站汇总集合
     */
	@Override
	public List<TranshipInfra> selectTranshipInfraList(TranshipInfra transhipInfra)
	{
	    return transhipInfraMapper.selectTranshipInfraList(transhipInfra);
	}
	
    /**
     * 新增接驳站汇总
     * 
     * @param transhipInfra 接驳站汇总信息
     * @return 结果
     */
	@Override
	public int insertTranshipInfra(TranshipInfra transhipInfra)
	{
	    return transhipInfraMapper.insertTranshipInfra(transhipInfra);
	}
	
	/**
     * 修改接驳站汇总
     * 
     * @param transhipInfra 接驳站汇总信息
     * @return 结果
     */
	@Override
	public int updateTranshipInfra(TranshipInfra transhipInfra)
	{
	    return transhipInfraMapper.updateTranshipInfra(transhipInfra);
	}

	/**
     * 删除接驳站汇总对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
	@Override
	public int deleteTranshipInfraByIds(String ids)
	{
		return transhipInfraMapper.deleteTranshipInfraByIds(ids.split(","));
	}
	
}
